﻿using UnityEngine;
using System.Collections;

public class GroupManager : MonoBehaviour {
	public ArrayList groups = new ArrayList();
	void Update () {
		for(int i=0;i<groups.Count;){
			Group g = (Group)groups[i];
			if(g.updateGroup())
				i++;
			else
				groups.RemoveAt(i);
		}
	}
}
